package com.entity;

import java.io.Serializable;

/**
 * house
 * @author 
 */
public class House implements Serializable {
    private Integer hid;

    private String hname;

    private Integer cid;

    private Integer lid;

    private Integer oid;

    private Integer rid;

    private Integer did;

    private Integer zid;

    private Integer bid;

    private Integer lnid;

    private Integer bsid;

    private Integer gid;

    private String location;

    private String housedrawing;

    private Integer housestatusid;

    private static final long serialVersionUID = 1L;

    public Integer getHid() {
        return hid;
    }

    public void setHid(Integer hid) {
        this.hid = hid;
    }

    public String getHname() {
        return hname;
    }

    public void setHname(String hname) {
        this.hname = hname;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getLid() {
        return lid;
    }

    public void setLid(Integer lid) {
        this.lid = lid;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public Integer getZid() {
        return zid;
    }

    public void setZid(Integer zid) {
        this.zid = zid;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public Integer getLnid() {
        return lnid;
    }

    public void setLnid(Integer lnid) {
        this.lnid = lnid;
    }

    public Integer getBsid() {
        return bsid;
    }

    public void setBsid(Integer bsid) {
        this.bsid = bsid;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getHousedrawing() {
        return housedrawing;
    }

    public void setHousedrawing(String housedrawing) {
        this.housedrawing = housedrawing;
    }

    public Integer getHousestatusid() {
        return housestatusid;
    }

    public void setHousestatusid(Integer housestatusid) {
        this.housestatusid = housestatusid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        House other = (House) that;
        return (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid()))
            && (this.getHname() == null ? other.getHname() == null : this.getHname().equals(other.getHname()))
            && (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()))
            && (this.getLid() == null ? other.getLid() == null : this.getLid().equals(other.getLid()))
            && (this.getOid() == null ? other.getOid() == null : this.getOid().equals(other.getOid()))
            && (this.getRid() == null ? other.getRid() == null : this.getRid().equals(other.getRid()))
            && (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid()))
            && (this.getZid() == null ? other.getZid() == null : this.getZid().equals(other.getZid()))
            && (this.getBid() == null ? other.getBid() == null : this.getBid().equals(other.getBid()))
            && (this.getLnid() == null ? other.getLnid() == null : this.getLnid().equals(other.getLnid()))
            && (this.getBsid() == null ? other.getBsid() == null : this.getBsid().equals(other.getBsid()))
            && (this.getGid() == null ? other.getGid() == null : this.getGid().equals(other.getGid()))
            && (this.getLocation() == null ? other.getLocation() == null : this.getLocation().equals(other.getLocation()))
            && (this.getHousedrawing() == null ? other.getHousedrawing() == null : this.getHousedrawing().equals(other.getHousedrawing()))
            && (this.getHousestatusid() == null ? other.getHousestatusid() == null : this.getHousestatusid().equals(other.getHousestatusid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode());
        result = prime * result + ((getHname() == null) ? 0 : getHname().hashCode());
        result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
        result = prime * result + ((getLid() == null) ? 0 : getLid().hashCode());
        result = prime * result + ((getOid() == null) ? 0 : getOid().hashCode());
        result = prime * result + ((getRid() == null) ? 0 : getRid().hashCode());
        result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode());
        result = prime * result + ((getZid() == null) ? 0 : getZid().hashCode());
        result = prime * result + ((getBid() == null) ? 0 : getBid().hashCode());
        result = prime * result + ((getLnid() == null) ? 0 : getLnid().hashCode());
        result = prime * result + ((getBsid() == null) ? 0 : getBsid().hashCode());
        result = prime * result + ((getGid() == null) ? 0 : getGid().hashCode());
        result = prime * result + ((getLocation() == null) ? 0 : getLocation().hashCode());
        result = prime * result + ((getHousedrawing() == null) ? 0 : getHousedrawing().hashCode());
        result = prime * result + ((getHousestatusid() == null) ? 0 : getHousestatusid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", hid=").append(hid);
        sb.append(", hname=").append(hname);
        sb.append(", cid=").append(cid);
        sb.append(", lid=").append(lid);
        sb.append(", oid=").append(oid);
        sb.append(", rid=").append(rid);
        sb.append(", did=").append(did);
        sb.append(", zid=").append(zid);
        sb.append(", bid=").append(bid);
        sb.append(", lnid=").append(lnid);
        sb.append(", bsid=").append(bsid);
        sb.append(", gid=").append(gid);
        sb.append(", location=").append(location);
        sb.append(", housedrawing=").append(housedrawing);
        sb.append(", housestatusid=").append(housestatusid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}